//
//  ViewController.m
//  DailyNews
//
//  Created by 于跃隆 on 2018/12/21.
//  Copyright © 2018年 于跃隆. All rights reserved.
//

#import "ViewController.h"
#import "NewsViewController.h"
#import "MyViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UINavigationController *News = [[UINavigationController alloc] initWithRootViewController:[[NewsViewController alloc] init]];
    News.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"新闻头条" image:[UIImage imageNamed:@""] selectedImage:[UIImage imageNamed:@""]];
    
    UINavigationController *My = [[UINavigationController alloc] initWithRootViewController:[[MyViewController alloc] init]];
    My.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"我的收藏" image:[UIImage imageNamed:@""] selectedImage:[UIImage imageNamed:@""]];
    
    [self setViewControllers:@[News,My]];
    
}


@end
